cmake_minimum_required(VERSION 2.8)
project(DisplayImage)

# 设置OpenCV路径
list(APPEND CMAKE_PREFIX_PATH "/home/daisy/opencv")

# 查找OpenCV库
find_package(OpenCV REQUIRED)

# 添加可执行文件
add_executable(DisplayImage main.cpp)

# 链接OpenCV库
target_link_libraries(DisplayImage ${OpenCV_LIBS})

